package org.bistu.course.bean;

import java.util.Date;

public class Student {
	private int id;
	private String name;
	private int age;
	private String sex;
	private Date createdate;
	private Date updatadate;
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
	public int getAge() {
		return age;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatetime() {
		this.createdate = new Date();
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getUpdatadate() {
		return updatadate;
	}
	
	public void setUpdatadate(Date updatadate) {
		this.updatadate = updatadate;
	}
	public void setUpdatadate() {
		this.updatadate = new Date();
	}
	
}
